require('../ad/ad.less')

let time = document.querySelector('.time')
let tiao = document.querySelector('.tiao')

// 倒计时
let i = 5 
let timer = setInterval(function(){
    i--
    time.textContent = `${i}s`
    if(i==0){
        // 倒计时结束跳转
        location.href = '../reg.html'
        // clearInterval(timer)
        // timer = null
    }
},1000)

tiao.addEventListener('click',function(){
    location.href = '../reg.html'
})